package com.sina.interfaces.config;

import com.sina.interfaces.dao.InterFacesDataSourceDao;
import com.sina.interfaces.core.BaseDao;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * created  on 13/11/2017.
 */
@Configuration
public class DaoAutoConfig {

    @Bean
    public BaseDao InterfacesDataSourceDao() {
        return new InterFacesDataSourceDao();
    }

    @Configuration
    @ComponentScan(basePackages = "com.sina.interfaces.dao")
    public static class DaoScan {

    }


}
